package com.twetec.cms.model.vo.website;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;
import java.util.List;

@ApiModel
public class SiteColumnTreeVO  implements Serializable {

    @JsonSerialize(using = ToStringSerializer.class)
    @ApiModelProperty(value = "id", example = "1234567891")
    private Long id;

    @ApiModelProperty(value = "名字(站点或栏目名称)", example = "厦门市总工会")
    private String name;

    @ApiModelProperty(value = "类型(0表示站点，1表示树)", example = "0")
    private Integer type;


    @ApiModelProperty(value = "当前栏目是否需要审核", example = "0")
    private Integer verifyStatus;

    @ApiModelProperty(value = "子栏目树", example = "[" +
            "{" +
            "\"id\": 1440508157288644600," +
            "\"name\": \"友情链接\"," +
            "\"type\": 1," +
            "\"childList\": []" +
            "}" +
            "]")
    private List<SiteColumnTreeVO> childList;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public List<SiteColumnTreeVO> getChildList() {
        return childList;
    }

    public void setChildList(List<SiteColumnTreeVO> childList) {
        this.childList = childList;
    }

    public Integer getVerifyStatus() {
        return verifyStatus;
    }

    public void setVerifyStatus(Integer verifyStatus) {
        this.verifyStatus = verifyStatus;
    }

    @Override
    public String toString() {
        return "SiteCloumnTreeVO{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", type=" + type +
                ", verifyStatus=" + verifyStatus +
                ", childList=" + childList +
                '}';
    }
}
